<%@page import="RssEasy.Core.CookieHelper"%>
<%@page import="Model.User.UserList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
     CookieHelper cookie = new CookieHelper(request, response);
    if (cookie.Get("account") == null || cookie.Get("account") == "") {
        response.sendRedirect("/login/login.jsp");
    }
    UserList ult = new UserList(pageContext);
    ult.select("linkname,sex,zuoji,email,telphone,ame,fax").where("myid=?",cookie.Get("myid")).get_first_rows();
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>企企通-空间管理-联系方式管理</title>
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="/css/reset.css" rel="stylesheet" type="text/css" />
        <link href="css/contact.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <h1>修改联系方式：</h1>
        <form method="post" class="contact">
            <table>
                <tr><td>姓名：</td><td><input type="text" name="linkname"  placeholder="请输入姓名" id="linkname" value="<% ult.write("linkname");%>"/><label for="linkname"></label></td></tr>
                       <tr><td>性别：</td>
                                    <td dict-radio="sex" dict-name="sex" def="<% ult.write("sex"); %>"></td>
                            </tr>
                        <tr><td>联系电话：</td><td><input type="text" name="zuoji"  placeholder="请输入联系电话" value="<% ult.write("zuoji");%>" id="zuoji"/><label for="zuoji"></label></td></tr>
                        <tr><td>电子邮箱：</td><td><input type="text" name="email"  placeholder="请输入电子邮箱" value="<% ult.write("email");%>" id="email"/><label for="email"></label></td></tr>
                        <tr><td>手机：</td><td><input type="text" name="telphone"  placeholder="请输入手机" value="<% ult.write("telphone");%>" id="telphone"/><label for="telphone"></label></td></tr>
                        <tr><td>邮编：</td><td><input type="text" name="ame"  placeholder="请输入邮编" value="<% ult.write("ame");%>" id="ame"/><label for="ame"></label></td></tr>
                        <tr><td>传真 ：</td><td><input type="text" name="fax"  placeholder="请输入传真" value="<% ult.write("fax");%>" id="fax"/><label for="fax"></label></td></tr>
                    </table>
            <button type="button">保存</button>
        </form>
        <%@include file="/inc/js_all.html" %>
        <script src="js/contact.js" type="text/javascript"></script>
        <script src="/data/dictdata.js" type="text/javascript"></script>
    </body>
</html>
